// 业务模块的api
import axios from '@/utils/request'

// 获取材料分类
export function getMaterialCategory() {
  return axios({
    method: 'get',
    url: '/editor/material/getMaterialCategory'
  })
}
// 获取材料查询选项
export function getMaterialQueryOption(params) {
    return axios({
      method: 'get',
      url: '/editor/material/getMaterialQueryOption',
      params
    })
}
  // 查询材料
  export function queryMaterials(data) {
    return axios({
      method: 'post',
      url: '/editor/material/queryMaterials',
      data
    })
}
// 获取紧固件分类
export function getFastenerCategory() {
    return axios({
      method: 'get',
      url: '/editor/material/getFastenerCategory'
    })
  }
  //获取紧固件查询选项
  export function getFastenerQueryOption(params) {
      return axios({
        method: 'get',
        url: '/editor/material/getFastenerQueryOption',
        params
      })
  }
    // 查询紧固件
    export function queryFasteners(data) {
      return axios({
        method: 'post',
        url: '/editor/material/queryFasteners',
        data
      })
  }
